package com.example.HaiDLaobackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("post")
public class PostEntity {
	@TableId(type = IdType.AUTO)
	private Long id;
	private String title;
	private String content;
	private String imageUrl;
	private Long authorId;
	private String authorName;
	private LocalDateTime createdAt;
}

